﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="TR_TrainingGroups.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.TR_TrainingGroups" %>

<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc1" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  

  <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
        
  <%--<script type="text/javascript">  
           function openProjectDetails(id)
            {
                radopen("TR_TrainingSubjectDtls.aspx?id=" + id ,"ProjectDtls");
                return false;
            }
  </script>--%>
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
<%--     <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow 
                id="ProjectDtls" 
                runat="server"
                showcontentduringload="false"
                VisibleStatusbar="false"
                title="-"
                width="1050px"
                Height="600px"        
                Modal="true"
                behaviors="Close">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>--%>
    
    
      <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0" >
        <tr>
            <td valign = "top">
                
                <!-- <uc1:user ID="user1" runat="server" /> -->
                
            </td>
            <td width="20" >
            </td>
            <td>
            <%--<div class="moduleDivSlim700">
                    <div class="moduleDivBottom700">
                         <asp:Panel ID="PanelFilter" runat="server" Width="700px" ScrollBars="Auto">
                            <table align = "center" width = "650px">
                                    <tr>
                                        <td align="right" >
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        
                                       <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                        </asp:Panel>
                    </div>
                </div>--%>
            </td>
          </tr>
          <tr>
          <td colspan = "3">
        <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
        <table align="center" width ="980px" >
        <tr>
            <td align="left" class="tableHeader">
                กลุ่มกาารอบรม</td>
        </tr>
        </table>
        <table width ="980px" align="center">
        <tr>
        <td >
        <asp:Panel ID="PanelGrid" 
            runat="server" 
            Width="980px" 
            Height="350px" ScrollBars="Auto" >
                <telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="99%" 
                    onitemdatabound="RadGrid2_ItemDataBound">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="Sequence" CommandItemDisplay="Top" DataKeyNames="Sequence" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid2.MasterTableView.IsItemInserted && RadGrid2.EditIndexes.Count <= 0 %>">
                                        <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มรายการใหม่</asp:LinkButton>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
  
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                <ItemStyle Width="15px" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="10px" />
                                <ItemStyle HorizontalAlign="Center" Width="10px" />
                            </telerik:GridButtonColumn>
                            
                            <telerik:GridBoundColumn DataField="training_group_seq" HeaderText="รหัสกลุ่ม" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="training_group_seq"
                               Visible="false">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="100px"/>
                                <ItemStyle HorizontalAlign="Left" Width="100px" />
                            </telerik:GridBoundColumn>                           
                            
                            <telerik:GridBoundColumn DataField="training_group_descr" HeaderText="ชื่อกลุ่มการอบรม" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                                UniqueName="training_group_descr">
                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn DataField="n_internal" 
                               HeaderText="บุคคลากรภาายใน / ภายนอก" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="n_internal">
                            <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="300px"/>
                                <ItemStyle HorizontalAlign="Left" Width="300px" />
                            </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl" 
                            UserControlName="../UserControls/TR_TrainingGroups.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>
                </td>
                </tr>
                </table>
                </div>
</div>
</td>
</tr>
</table>
</asp:panel>

</asp:Content>
